class Segment < ActiveRecord::Base
  has_and_belongs_to_many :corpora
  before_create :size_init
  private
  def size_init
    self.size = 0 if self.size.nil?
  end
end
